package designMode.builder;

/**
 * Created by 小星打屁屁 on 2015/3/26.
 * contact me ==>243709758@qq.com
 */
public class ManBuilder implements IPersonBuilder {
    Person person ;
    public ManBuilder(){
        person = new Man();
    }
    @Override
    public void buildHead() {
       person.setHead("男人的head");
    }

    @Override
    public void buildBody() {
        person.setHead("男人的body");
    }

    @Override
    public void buildFoot() {
        person.setHead("男人的foot");
    }

    @Override
    public Person buildPerson() {
        return person;
    }
}
